import { ObjCreate } from "../../common/ObjCreate";
import { ImagesConst } from "../../../resource/ImagesConst";
import { GTextFiled } from "../../../../../com/mui/controls/GTextFiled";
//class OlympicGuessDesc
    
    export  class OlympicGuessDesc /* flash.display.Sprite */
    {
        constructor()
        {
            
            this.initView();
            return;
        }

        public set desc(arg1: string)
        {
            if (arg1 == null) 
            {
                return;
            }
            this._txtDesc.htmlText = arg1;
            return;
        }

        public setDesc2RowPlace(): void
        {
            this._txtDesc.y = 12;
            return;
        }

        /* internal  */initView(): void
        {
            ObjCreate.createBg(0, 0, 693, 58, this, ImagesConst.FightingStrgBg);
            var loc1=new Object /* flash.display.Sprite */();
            loc1.x = 4;
            loc1.y = 0;
            loc1.graphics.beginFill(867392, 0.5);
            loc1.graphics.drawRect(0, 0, 682, 59);
            loc1.graphics.endFill();
            this.addChild(loc1);
            this._txtDesc = ObjCreate.createGTextField("", 10, 4, 673, 80, this);
            var loc2=this._txtDesc.defaultTextFormat;
            loc2.leading = 5;
            this._txtDesc.defaultTextFormat = loc2;
            this._txtDesc.multiline = true;
            this._txtDesc.wordWrap = true;
            this._txtDesc.mouseEnabled = false;
            return;
        }

        /* internal */ /* var */_txtDesc: GTextFiled;
    }
